<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Dashboard</title>
  <!-- build:css ../../static/css/index.css -->
  <link href="../../resources/contextMenu/jquery.contextMenu.min.css" rel="stylesheet">
  <link href="../../resources/layui/css/layui.css" rel="stylesheet">
  <link href="../../resources/css/iconfont.css" rel="stylesheet">
  <link href="../../resources/css/bundle.css" rel="stylesheet">
  <!-- endbuild -->
</head>
<body>

<div class="layui-fluid">
  <div class="layout-fluid-header">
    <div class="nav">
      <span class="layui-breadcrumb">
        <a href="">首页</a>
        <a href="">基础表单</a>
      </span>
    </div>
    <h1>
      基础表单
    </h1>
    <p> 表单页用于向用户收集或验证信息，基础表单常见于数据项较少的表单场景。
    </p>
  </div>
  <div class="layout-fluid-container">
    <div class="layout-wrapper">
      <form class="layui-form"> <!-- 提示：如果你不想用form，你可以换成div等任何一个普通元素 -->
        <div class="layui-form-item">
          <label class="layui-form-label">输入框</label>
          <div class="layui-input-block">
            <input type="text" name="" placeholder="请输入" autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">下拉选择框</label>
          <div class="layui-input-block">
            <select name="interest" lay-filter="aihao">
              <option value="0">写作</option>
              <option value="1">阅读</option>
            </select>
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">复选框</label>
          <div class="layui-input-block">
            <input type="checkbox" name="like[write]" title="写作">
            <input type="checkbox" name="like[read]" title="阅读">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">开关关</label>
          <div class="layui-input-block">
            <input type="checkbox" lay-skin="switch">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">开关开</label>
          <div class="layui-input-block">
            <input type="checkbox" checked lay-skin="switch">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">单选框</label>
          <div class="layui-input-block">
            <input type="radio" name="sex" value="0" title="男">
            <input type="radio" name="sex" value="1" title="女" checked>
          </div>
        </div>
        <div class="layui-form-item layui-form-text">
          <label class="layui-form-label">请填写描述</label>
          <div class="layui-input-block">
            <textarea placeholder="请输入内容" class="layui-textarea"></textarea>
          </div>
        </div>
        <div class="layui-form-item">
          <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
          </div>
        </div>
        <!-- 更多表单结构排版请移步文档左侧【页面元素-表单】一项阅览 -->
      </form>
    </div>
  </div>
</div>

<!-- build:js ../../static/js/main.js -->
<script src="../../resources/jquery/jquery.min.js"></script>
<script src="../../resources/contextMenu/jquery.contextMenu.min.js"></script>
<script src="../../resources/layui/layui.all.js"></script>
<!-- endbuild -->

<script>
  layui.use('form', function () {
    var form = layui.form;

  });
</script>
</body>
</html>
